/*
 * 英才汇硕信息科技有限公司 拥有本软件版权 2021  并保留所有权利。
 * Copyright 2021, YCHS Information&Science Technology Co.,Ltd,
 * All rights reserved.
 */
package com.ws.lawyermanager.dongao.controller;

import com.ws.lawyermanager.dongao.entity.lawyer;
import com.ws.lawyermanager.dongao.service.lawyerservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 律师控制器
 * @author wangshaobo
 * @version 1.0
 */
@Controller
public class lawyercontroller {
    @Autowired
    lawyerservice lawyerservice;
    @RequestMapping("/addlawyer")
    public String addlawyer(lawyer lawyer){
        lawyerservice.addlawyer(lawyer);
        return "success";
    }
}
